<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<!---meta name="generator" content="HTML Tidy, see www.w3.org" /-->
		<title>bj</title>
		<!---link rel="stylesheet" type="text/css" media="screen" href="xhtml.css" /-->
		<script>
function getJSON(json){
	if(!json||json.length<1)
		return false;
	var outVar;
	eval("outVar="+json);
	return outVar;
}
function get(url){
	var client = window.XMLHttpRequest?(new XMLHttpRequest()):(new ActiveXObject("Microsoft.XMLHTTP"));
	client.open("GET", url, false);
	client.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
	client.send(null);
	return client.responseText;
}
function post(url, params){
	var client = window.XMLHttpRequest?(new XMLHttpRequest()):(new ActiveXObject("Microsoft.XMLHTTP"));
	client.open("POST", url, false);
	client.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8");
	client.setRequestHeader("Content-length", params?params.length:0);
	client.setRequestHeader("Connection", "close");
	client.send(params);
	return client.responseText;
}
var url="${url}";
var signedIn=${user.signedIn};
var basePath="${basePath}";
var isSafari=(navigator.userAgent.indexOf('Safari')>-1);
var isOpera=(navigator.userAgent.indexOf('Opera')>-1);
var isMozilla=(navigator.appName=='Netscape');
var isIE=!(isSafari||isOpera||isMozilla);
function insertHTMLWithJS(el, text){
	el.innerHTML=text;
	var scripts=el.getElementsByTagName("SCRIPT");
	for(var i=scripts.length-1; i>-1; i--){
		var x=document.createElement("script");
		x.type="text/javascript";
		if(!isIE)
			x.innerHTML=scripts[i].innerHTML;
		else
			x.text=scripts[i].text;
		document.getElementsByTagName("HEAD")[0].appendChild(x);
		scripts[i].parentNode.removeChild(scripts[i]);
	}
}
function encode(str){
	return str; // TODO
}
function f(form,backUrl){
	var action=form.action;
	var inputs=concat(form.getElementsByTagName("INPUT"),
			form.getElementsByTagName("TEXTAREA"),
			form.getElementsByTagName("SELECT"));
	var params="";
	for(var i=0; i<inputs.length; i++){
		var input=inputs[i];
		if(input.name&&input.value){
			params += (i > 0 ? "&" : "") + escape(input.name) + "=" + encodeURIComponent(input.value);
		}
	}
	var returnedObject=getJSON(post(action, params));
	if(returnedObject["error"]){
		alert(returnedObject["error"]);
		return false;
	}else{
		if(backUrl){
			window.location=backUrl;
		}
		return true;
	}
}
function concat(){
	var array=[];
	for(var i=0;i<arguments.length;i++){
		var nodeList=arguments[i];
		for(var j=0;j<nodeList.length;j++){
			array.push(nodeList[j]);
		}
	}
	return array;
}
function $(id){
	return document.getElementById(id);
}
var addEvent;
if (document.addEventListener) {
	addEvent = function(element, type, handler) {
		element.addEventListener(type, handler, false);
	};
} else if (document.attachEvent) {
	addEvent = function(element, type, handler) {
		element.attachEvent("on" + type, handler);
	};
}
		</script>
		<style>
body{
	
}
div, span{
	border: 1px solid #777;
	margin: 1px;
	padding: 1px;
}
		</style>
	</head>
	<body>
	<div align='center' style='width: 100%; border-width: 0;'>
		<div style='width: 1000px; background-color: #fff;'>
<jsp:include page='${url}' />
		</div>
	</div>
	</body>
</html>
